﻿using UnityEngine;
using System;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;

public class Terraforming : Building, IRepeatable
{
	private bool m_Repeat;

	#region IRepeatable
	public bool Repeat
	{
		get { return m_Repeat; }
		set { m_Repeat = value; }
	}
	#endregion

	public Terraforming()
	{
		this.Name = GameEnums.Facilities.Terraforming;
		this.DispName = Utility.SplitName(this.Name.ToString());
		this.MotherTech = new GameEnums.TechName[] { GameEnums.TechName.Terraforming };
	}

	public Terraforming(bool getID) : this()
	{
		FacilityID = ++Galaxy.FacilitySerial;
		Core.Buildings.Add(FacilityID, this);
	}

	public Terraforming(Planet pl)
	{
		Planet = pl;
	}

	public override void OnTurn()
	{
		base.OnTurn();


	}

	public override void OnTurn(Planet pl)
	{
		base.OnTurn(pl);

		Planet = pl;
		this.OnTurn();
	}

	public bool CheckRepeat()
	{

		return true;
	}

	public bool CheckRepeat(Planet pl)
	{
		Planet = pl;

		return this.CheckRepeat();
	}
}